package com.own.component.client.impl;

import com.own.component.client.base.RequestClientManager;
import com.own.component.client.property.ClientProperty;

import javax.servlet.http.HttpServletRequest;

/**
 * DefaultParameterRequestClientManager
 *
 * @author chenxueli
 * @date 2022-06-15 03:14:15
 */
public class DefaultParameterRequestClientManager extends RequestClientManager {

    public DefaultParameterRequestClientManager(ClientProperty clientProperty) {
        super(clientProperty);
    }

    /**
     * 获取客户端信息
     *
     * @return 客户端信息
     */
    @Override
    public String client(HttpServletRequest request) {
        return request == null ? null : request.getParameter(this.getClientField());
    }

}
